package com.boyi.shared.common;

/**
 * R.class
 *
 * @author tingwen
 * @date date
 */
public class R {

    public static Result ok() {
        return new Result();
    }

    public static Result ok(Object data) {
        return new Result(data);
    }

    public static Result error(String msg) {
        return new Result(500, msg);
    }

    public static Result message(Message message) {
        return new Result(message);
    }
}
